GOFLAGS=-ldflags "-w -s -X \"main.version=`git rev-list HEAD | wc -l`\" -X \"main.commitID=`git rev-list HEAD | head -1`\""

APPS = lampmanager
BLDDIR = build

all:
	mkdir -p $(BLDDIR)/db
	go build ${GOFLAGS} -o $(BLDDIR)/bin/${APPS} main.go
	cp -fr conf $(BLDDIR)
	cp -fr static $(BLDDIR)

clean:
	rm -fr $(BLDDIR)
